/*******************
ML_Message.h

*******************/

#ifndef _ML_MESSAGE_H__
#define _ML_MESSAGE_H__

//导入Arduino头
#include"Arduino.h"
//extern void ML_Message_onMessage(int type ,String title,String content);
extern String ML_messageContent;
void ML_Message_start(long baud);
void ML_Message_start(Stream &stream);
//void ML_Message_startstream();
void ML_Message_send(int type, char* title, char* content, char* targetActorId);
void ML_Message_send(int type,char* title,String content,char* targetActorId);
void ML_Message_send(int type,char* title,int content,char* targetActorId);
void ML_Message_send(int type,char* title,long content,char* targetActorId);
void ML_Message_send(int type,char* title,unsigned long content,char* targetActorId);
void ML_Message_send(int type,char* title,float content,char* targetActorId);
void ML_Message_send(int type,char* title,bool content,char* targetActorId);
void ML_Message_send(int type,char* title,char content,char* targetActorId);
void ML_Message_send(int type,String title,String content,char* targetActorId);
void ML_Message_receive();
#endif